package com.qidian.mespro.mapper;

import com.qidianit.mes.pojo.pro.Workflow;

import java.util.List;

/**
 * @ Description:
 * @ Author: DuYaTao
 * @ Date: 2025/9/18 - 18:59
 */
public interface WorkflowMapper {

    List<Workflow> selectList(Workflow workflow);

    /**
     * 根据工艺编号查询单个工艺信息
     * @param code
     * @return
     */
    Workflow selectByWorkflowCode(String code);

    /**
     * 新增工艺流程
     * @param workflow
     * @return
     */
    int insertWorkflow(Workflow workflow);

    /**
     * 编辑工艺流程
     * @param workflow
     * @return
     */
    int updateWorkflow(Workflow workflow);

    /**
     * 根据id删除单个工艺
     * @param id
     * @return
     */
    int deleteById(Integer id);

    int batchDelete(Integer[] ids);
}
